totalMoneyWithProposedCardSurcharge

Provides access to the total amount, including tip and a proposed card surcharge, if applicable. If the merchant sets a card surcharge for this location and the buyer pays with a card subject to surcharge, this will be the total amount authorized. This value can be used to display the amount with surcharge on a custom payment prompt screen. This value will be null if a card surcharge is not applicable. Example:

  • PaymentParameters.amountMoney = $10.00 (includes PaymentParameters.appFeeMoney, if set)

  • PaymentParameters.tipMoney = $2.00

  • 3% card surcharge = $0.30 (internally calculated by MPSDK based on Square Dashboard settings)

  • totalMoneyWithProposedCardSurcharge = $12.30